<template>
	<view>
		<!-- <classifyItem :ClassifyData="list" @itemClick="itemClick"></classifyItem> -->
	</view>
</template>

<script>
	// 导入模型
	// import classifyItem from '@/components/cc-classifyView/components/cc-classifyView/classify';
	import { spList } from '@/api/shop.js'
	export default {
		// components: { classifyItem },
		data() {
			return {
				pId:"",
				list:[]
			};
		},
		onLoad: function(options) {
			this.pId = options.id
			this.getList()
		},
		methods: {
			// 查询该品牌存在的分类和商品
			getList(){
				let data = {
					  id :this.pId
				}
				console.log('1111',data)
				spList(data).then((res) => {
					if(res.code==200){
						this.list = res.data
						console.log('111111',this.list)
						// const str = [];
						// this.shopList = res.data
						// for (let i = 0; i < this.shopList.length; i++) {
						// 	this.shopList[i].price = this.shopList[i].price.replace(/\.00$/, '');
						// 	this.cimages[i] = res.data[i].images.split(",")
						// }
					}
				  })
			}
		}
	}
</script>

<style>
</style>